Skip to content

Conversation

@MozirDmitriy
Copy link
Contributor

Reason:
Previously cairo_run_fuzzed_program always passed false into CairoRunner::end_run, so the disable_trace_padding flag in CairoRunConfig only affected builtin segment padding but could not prevent padding the number of steps to a power of two in proof mode. This made its behaviour inconsistent with cairo_run and cairo_run_pie and effectively ignored part of the public configuration in fuzzed runs.

Summary:
Pass cairo_run_config.disable_trace_padding into cairo_runner.end_run in cairo_run_fuzzed_program so that fuzzed runs respect the same trace padding semantics as the main run helpers.

@gabrielbosio
Copy link
Collaborator

The hardcoded false has been there since cairo_run_fuzzed_program was introduced in #1344. With disable_trace_padding = false, end_run allows run_until_next_power_of_2 in proof mode.

Did you hit a concrete issue with the current behavior, or is this purely a consistency fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants